package com.spring.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhangyan
 * @version $ Id: XmlMain.java, v 0.1 2020/10/19 15:56 zhangyan Exp $
 */
public class XmlMain {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
		System.out.println(context.getBean(StaffService.class).getUserService());
	}
}
